package cn.iocoder.yudao.module.wms.enums;

import cn.iocoder.yudao.framework.common.exception.ErrorCode;

/**
 * wms模块 错误码枚举类
 *
 * 使用 1-030-000-000 段
 */
public interface ErrorCodeConstants {

    // ========== 商品管理 模块 1-030-000-000 ==========
    ErrorCode COMMODITY_NOT_EXISTS = new ErrorCode(1_030_000_000, "商品不存在");
    ErrorCode COMMODITY_NAME_EXISTS = new ErrorCode(1_030_00_001, "商品名称重复");

    // ========== 销售管理 模块 1-030-001-000 ==========
    ErrorCode SALE_NOT_EXISTS = new ErrorCode(1_030_001_000, "销售记录不存在");
    ErrorCode SALE_STATUS_INCORRECT = new ErrorCode(1_030_001_000, "结款状态不正确");

    // ========== 员工管理 模块 1_030_002_000 ==========
    ErrorCode EMPLOYEE_NOT_EXISTS = new ErrorCode(1_030_002_000, "员工不存在");
    ErrorCode EMPLOYEE_PHONE_OR_ID_CARD_EXISTS = new ErrorCode(1_030_002_001, "手机号码或身份证重复");

    // ========== 仓库管理 模块 1_030_003_000 ==========
    ErrorCode WAREHOUSE_NOT_EXISTS = new ErrorCode(1_030_003_000, "仓库不存在");
    ErrorCode WAREHOUSE_NAME_EXISTS = new ErrorCode(1_030_003_000, "仓库名称重复");

    // ========== 库存管理 模块 1_030_004_000 ==========
    ErrorCode INVENTORY_NOT_EXISTS = new ErrorCode(1_030_004_000, "库存不存在");
    ErrorCode INVENTORY_COMMODITY_NOT_EXISTS = new ErrorCode(1_030_004_001, "仓库内不存在该商品");
    ErrorCode INVENTORY_COUNT_NOT_ENOUGH = new ErrorCode(1_030_004_002, "出库失败，库存数量不足");

    // ========== 库存记录 模块 1_030_005_000 ==========
    ErrorCode INVENTORY_RECORD_NOT_EXISTS = new ErrorCode(1_030_005_000, "库存记录不存在");

    // ========== 配送管理 模块 1_030_006_000 ==========
    ErrorCode DISTRIBUTION_NOT_EXISTS = new ErrorCode(1_030_006_000, "配送信息不存在");
    ErrorCode DISTRIBUTION_STATUS_INCORRECT = new ErrorCode(1_030_006_000, "配送状态不正确");

    // ========== 车辆资料 模块 1_030_007_000 ==========
    ErrorCode VEHICLE_NOT_EXISTS = new ErrorCode(1_030_007_000, "车辆资料不存在");
    ErrorCode VEHICLE_NUMBER_EXISTS = new ErrorCode(1_030_007_000, "车辆号码重复");

    // ========== 驾驶员资料 模块 1_030_008_000 ==========
    ErrorCode DRIVER_NOT_EXISTS = new ErrorCode(1_030_008_000, "驾驶员资料不存在");
    ErrorCode DRIVER_PHONE_OR_ID_CARD_EXISTS = new ErrorCode(1_030_008_001, "手机号码或身份证重复");

}
